<?php 
foreach ($data as $key => $entry)
{
	$text = '<p><span style="font-size: 150%; font-weight: bold;">' . ($key + 1) . ". ";
	if (!empty($entry['Entry']['title']))
	{
		$text .= $entry['Entry']['title'] . "<br />";
	}
	$text .= "</span>";
	$text .= nl2br(trim($entry['Entry']['value'])) . "</p>";
	print $text;
	print "<br />";
}
?>
<a href="getpdf?ids=<?php echo $ids ?>">Get PDF</a>